package com.wanxi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Li
 * @Date 2023/5/5 19:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "建议",description = "描述建议对象")
@TableName("suggest")
public class SuggestModel {
    @TableId(value = "id", type = IdType.ASSIGN_ID)//雪花算法
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "建议id",example = "1678239961299619841")
    private Long id;
    @ApiModelProperty(value = "建议者姓名",example = "王五")
    private String name;
    @ApiModelProperty(value = "联系电话",example = "14798566634")
    private String phone;
    @ApiModelProperty(value = "邮箱地址",example = "ww@qq.com")
    private String email;
    @ApiModelProperty(value = "建议内容",example = "无法接收到验证码")
    private String message;
    @ApiModelProperty(value = "备注",example = "功能问题")
    private String remark;
    @ApiModelProperty(value = "可用状态",example = "1")
    private Integer enable;
    @ApiModelProperty(value = "创建时间",example = "2023-07-04 10:42:20")
    private String createTime;
    @ApiModelProperty(value = "修改时间",example = "2023-07-04 10:42:20")
    private String updateTime;
    @ApiModelProperty(value = "页数",example = "1")
    @TableField(exist = false)
    private Integer page; //页数
    @ApiModelProperty(value = "查询条数",example = "10")
    @TableField(exist = false)
    private Integer limit; //条数


}
